export enum BLOG_STATUS {
  DRAFT = 'DRAFT',
  PUBLISHED = 'PUBLISHED',
  DELETED = 'DELETED'
}

export const BLOG_STATUS_LIST = [
  {
    value: BLOG_STATUS.DRAFT,
    label: '草稿'
  },
  {
    value: BLOG_STATUS.PUBLISHED,
    label: '已发布'
  },
  {
    value: BLOG_STATUS.DELETED,
    label: '已删除'
  }
];

export const BLOG_STATUS_MAP = BLOG_STATUS_LIST.reduce((acc, item) => {
  acc[item.value] = item;
  return acc;
}, {});
